import { post, fetch, apiBase } from '@/http'
import qs from 'qs'

const POST_FORM_OPTION = {
    transformRequest: [
        function(data) {
            return qs.stringify(data)
        },
    ],
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
}

export const login = (params) => fetch('/api/user/login', params) //登录-?mobile=13317165336&pwd=123456
export const userInfo = (params) => fetch(`${apiBase.userServer}/acctManage/index`, params, true) //用户信息
